<label for="inputImage" style="font-size:20px">图片上传:</label>
<form id="inputImageForm" enctype='multipart/form-data' >
    <table class="table" id="inputTable">
        <tr id="inputTr" class="inputTr">
            <td class="col-sm-1">
                <input type="file"  name="1" class="inputImage" >
            </td>
            <td>
                <input type="button" class="btn-xs" id="deleteFile" value="删除" >
            </td>
        </tr>
    </table>
</form>
<table class="table">
    <tr>
        <td class="col-sm-1">
            <input type="button" id="addFile" class="btn btn-xs" value="添加文件"/>
        </td>
        <td>
            <input class="btn btn-xs" type="button" id="uploadBtn" value="上传图片">
        </td>
    </tr>
</table>
<p class="help-block" style="color:red">&nbsp;注意:图片格式 *.jpg *.png  图片大小:<2MB  推荐：900*400 px  </p>
<div class="row" id="previewDiv" style="display:none">
    <% if(imagesPath.length){%>
    <% imagesPath.forEach(function(imagesPath){%>
    <div class="col-lg-3" style="margin:20px">
        <img class="img-rounded" src="<%= imagesPath%>" alt="preview" height="120px" width="270px"/>
        <table class="table">
            <tr>
                <td>
                    <input type="button" id="setCover" class="btn btn-xs setCover" value="设为封面"/>
                </td>
                <td>

                    <input class="btn btn-xs" type="button" id="deleteImgPre" value="删除">
                </td>
            </tr>
        </table>
    </div>

    <%})}%>
</div>
